﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ajayumi.Test.WinUI
{
    public partial class FrmMain : Form
    {

        public FrmMain()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            using (Form frm = new Form()
            {
                Size = new System.Drawing.Size(600, 480),
                StartPosition = FormStartPosition.CenterScreen
            })
            {
                frm.Controls.Add(new DetailDemoPanel()
                {
                    Dock = DockStyle.Fill
                });
                frm.ShowDialog();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            using (Form frm = new Form()
            {
                Size = new System.Drawing.Size(600, 480),
                StartPosition = FormStartPosition.CenterScreen
            })
            {
                frm.Controls.Add(new ListDemoPanel()
                {
                    Name = "ListDemoPanel1",
                    Dock = DockStyle.Fill
                });
                frm.ShowDialog();
            }            
        }

        private void bindingSource1_AddingNew(object sender, AddingNewEventArgs e)
        {

        }

        private void bindingSource1_ListChanged(object sender, ListChangedEventArgs e)
        {

        }
    }
}
